import links
import model
import settings


def run():
    website = model.WebSite()
    website_list = website.fetchall()
    for w in website_list:
        inter_link = links.InterLinks(w)
        inter_link.crawling_and_save()


if __name__ == '__main__':
    # 运行
    run()

    # print("已启动", settings.PROXY_CONN)
    # website = model.WebSite()
    # w = website.fetchall()[-1]
    # print(w.website_domain)
    #
    # inter_link = links.InterLinks(w)
    # inter_link.crawling_and_save()




